//
//  StatusNormalCell.m
//  weibo110
//
//  Created by 臧松 on 16/1/7.
//  Copyright © 2016年 臧松. All rights reserved.
//
#define StatusCellMargin 12

#import "StatusNormalCell.h"
#import "Masonry.h"
@implementation StatusNormalCell

// 重写 set 方法 赋值控件
-(void)setStatusViewModel:(StatusViewModel *)statusViewModel{
    
    [super setStatusViewModel:statusViewModel];
    [self.pictureView mas_updateConstraints:^(MASConstraintMaker *make) {

                float offSet = 0.f;
                if (statusViewModel.thumbnailUrls.count > 0) {
                     offSet = StatusCellMargin;
                }else{
                    offSet = 0.f;
                }
                make.top.equalTo(self.contentLabel.mas_bottom);
    }];
    
    
}


-(void)setupUI{
    
    [super setupUI];
    
        [self.pictureView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.top.equalTo(self.contentLabel.mas_bottom).offset(StatusCellMargin);
            make.left.equalTo(self.contentLabel.mas_left);
            make.height.equalTo(@90);
            make.width.equalTo(@300);
        }];

}

@end
